﻿// This code is released under the BSD license.
namespace PugLib.TestCollateral
{
    #region

    using System;
    using Extensions;

    #endregion

    public abstract class BaseView
    {
        public event EventHandler Save;

        public event EventHandler<EventArgs<Order>> Create;

        protected virtual void OnSave(object sender, EventArgs e)
        {
            Save.Raise(sender, e);
        }

        protected virtual void OnCreate(object sender,
                                        EventArgs<Order> e)
        {
            Create.Raise(sender, e);
        }
    }
}